package com.ktjy.crm.entity;



import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
@Data
@TableName("sys_user")
public class User implements Serializable {
  @TableId(value = "id",type = IdType.AUTO)
  private long id;
  @TableField("account")
  private String account;
  @TableField("realName")
  private String realName;
  private String password;
  private long sex;
  private Date birthday;
  private String phone;
  private String address;
  @TableField("roleId")
  private long roleId;
  @TableField("createdUserId")
  private long createdUserId;
  @TableField(fill = FieldFill.INSERT,value = "create_time")
  private LocalDateTime createdTime;
  @TableField("updatedUserId")
  private long updatedUserId;
  @TableField(fill = FieldFill.INSERT_UPDATE,value = "update_time")
  private LocalDateTime updatedTime;
  @Version
  private int version;
  private boolean deleted;
}
